<?php

// +----------------------------------------------------------------------
// |供应商管理控制器
// +----------------------------------------------------------------------
namespace app\admin\controller;

use app\BaseController;
use think\facade\View;
use app\admin\system\SupplierService;


class Supplier extends BaseController
{

    public function index()
    {
         // 供应商列表
        if(request()->isPost()){
            $param = request()->post();
            $data= SupplierService::getlist($param);        
            success($data);
        }else{
          return View::fetch();
        }      
    }

     // 供应商新增
     public function  create(){
        if(request()->isPost()){
            $param = request()->post();
            $data= SupplierService::create($param);        
            success($data);
        }
     }
     

}